﻿using System;

namespace Axial.DOM
{
	public static class Document
	{
		public static JSObject<Image> Images { get; private set; }
		public static JSObject<Element> Forms { get; private set; }
		public static JSArray<Anchor> Anchors { get; private set; }
		public static JSArray<Anchor> Links { get; private set; }
		
		public static Element Body { get; private set; }
		public static Element DocumentElement { get; private set; }

		public static string Cookie { get; private set; }
		public static string Domain { get; private set; }
		public static string LastModified { get; private set; }
		public static string Referrer { get; private set; }
		public static string Title { get; private set; }
		public static string URL { get; private set; }

		public static Element GetElementById(string id) { return default(Element); }
		public static Element CreateElement(string node) { return default(Element); }
		public static JSArray<Element> GetElementsByName(string name) { return null; }
		public static JSArray<Element> GetElementsByTagName(string tagName) { return null; }

		// cross browser dom extensions
		public static int ScrollLeft { get; set; }
		public static int ScrollTop { get; set; }

		/*
		public static Attribute CreateAttribute(string name) { return null; }
		public static Comment CreateComment(text) { return null; }
		public static DocumentFragment CreateDocumentFragment() { return null; }
		public static TextNode CreateTextNode(text) { return null; }
		*/
	}
}
